package iotwisp.school.user.command.user;

import javax.validation.constraints.NotBlank;

import com.alibaba.fastjson.JSON;

import iotwisp.base.cqrs.SPIBaseCommand;
import lombok.Data;
import lombok.EqualsAndHashCode;

@SuppressWarnings("serial")
@Data
@EqualsAndHashCode(callSuper = false)
public class UserRegisterSCmd extends SPIBaseCommand {

	@NotBlank(message = "请填写手机号")
	private String mobile;

	@NotBlank(message = "请输入密码")
	private String password;

	@NotBlank(message = "请输入短信验证码")
	private String smsValidCode;

	@NotBlank(message = "请输入注册推荐人手机号")
	private String regReferrerUserMobile;

	private String wxAccessToken;

	public String getUrl() {
		return "/org/user/register";
	}
	
	public static void main(String[] args) {

		UserRegisterSCmd cmd = new UserRegisterSCmd();
		cmd.setMobile("1350000000");
		cmd.setPassword("123456");
		cmd.setRegReferrerUserMobile("18600000000");
		cmd.setSagaId("4f1b131eb94d4980ba671cfbe79e5f99");
		cmd.setSmsValidCode("382518");
		System.out.println(JSON.toJSONString(cmd));
	}
}
